/**
 * 
 */
package org.iridium.allcomments.dto;

/**
 * @author iridium
 * 
 */
public class UserDTO {
	/**
	 * length: 0 ~ 50
	 */
	private long userId;

	private int roleId;

	/**
	 * length: 0 ~ 50
	 */
	private String nickname;

	/**
	 * length: 0 ~ 50
	 */
	private String realName;

	private String loginName;

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	private String password;

	/**
	 * {male: 0, female: 1, others: 2}
	 */
	private int sex;

	private int age;

	/**
	 * length: 0 ~ 200
	 */
	private String location;

	/**
	 * length: 0 ~ 50
	 */
	private String question;

	/**
	 * length: 0 ~ 50
	 */
	private String answer;

	/**
	 * length: 0 ~ 20
	 */
	private String mobile;

	/**
	 * length: 0 ~ 100
	 */
	private String email;


	public UserDTO() {
	}
	
	public UserDTO(long userId, String nickname, String realName,
			String password, int sex, int age, String location,
			String question, String answer, String mobile, String email,
			int emailContactVisibility, String emailSecret, int roleId) {
		this.userId = userId;
		this.nickname = nickname;
		this.realName = realName;
		this.password = password;
		this.sex = sex;
		this.age = age;
		this.location = location;
		this.question = question;
		this.answer = answer;
		this.mobile = mobile;
		this.email = email;
		this.roleId = roleId;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

}
